Skip to content

dasLLAMA: every test runs with its model, and the reds that showed are fixed - #4879

Merged
borisbat merged 108 commits into
masterfrom
bbatkin/dasllama-fetch-models
Dec 2, 2026
Merged

borisbat merged 108 commits into
masterfrom
bbatkin/dasllama-fetch-models

Conversation

@borisbat

@borisbat borisbat commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Rebuild required: with_job_status in the job queue runtime changes - every consumer rebuilds daslang.

Why. dasLLAMA tests skipped where a model file was absent, and such a run read green. With every model present the suites showed reds: wrong serving plans, a load refused by a hidden panic, a job queue crash on Linux.

What changes.

  • fetch_models.das --run fetches what a run names.
  • A load asked without the NextN head takes none, and the model keeps that ask.
  • CUDA refuses host layers with a hot pool and no prompt stream; the plan seats the token table before the pool.
  • A DFlash drafter's device scale plane reserves before it grows.
  • A panicked with_job_status block unlinks its wait group before it leaves.

Observable behavior.

  • A run missing a model: green with skips -> INCOMPLETE, exit 254.
  • Qwen3-Coder-Next on a 32 GB CUDA card: 48 of 48 routed layers on the host -> 21.
  • The 27B Q8_0 DFlash2 drafter on discrete homes: "cannot read as a GGUF" -> attaches.
  • Two test files, one Linux process: SIGSEGV -> pass.

Where to look. withJobStatus in module_builtin_jobque.cpp, resident_plan in dasllama_gpu_resident.das, the census in tests/run.das.

Validation, claims, ledger

Validation

Kind: final PR of the loader batch arc. The arc's PRs: #4859, #4864, #4865, this one; the first branched from 69d5378. This PR branched from f04361b.

Boxes: M5 Max (CPU, Metal); an NVIDIA RTX PRO 4500 32 GB pod, once as the Vulkan home and once as the CUDA home; zen2 (Windows) for the image-vulkan suite; zen4 (Linux, AVX-512) for the job queue.

Runs, each with the fetch plan PLAN 0 file(s) to fetch ... 0 to mint, 0 to convert, 0 unfetchable on its box:

Box Run Tip REPORT
M5 --suite model-free d4e80429e1 82 file(s), 0 failed
M5 --suite stocked d4e80429e1 65 file(s), 0 failed
M5 --area audio,vision,tts,translate,llm,infra d4e80429e1 149 file(s), 0 failed
M5 --changed --base f04361bef4 0d1c1f9 149 file(s), 0 failed
M5 --category x 23 d4e80429e1 0 failed each
M5 --test utils/dasllama-server / dasllama-convert d4e80429e1 582 passed, 0 failed / 40 passed
M5 full-mode cells (DASLLAMA_PARITY_FULL=1), six narrowed runs b8a85df 0 failed each: the facade -jit -exe build, the first-start races, the Canary-Qwen 2.5B oracle, the 27B and 35B MLX snapshots with their Metal forms
M5 browser examples on wasm64: storyteller, storywish, parrot, interpreter b8a85df all four pass against native renders; interpreter transcript and translation match native character for character; console clean
M5 --suite wasm 52f281a 19 file(s), 0 failed
Vulkan pod --suite model-free d4e80429e1 77 file(s), 0 failed
Vulkan pod --suite stocked d4e80429e1 64 file(s), 0 failed
CUDA pod --suite model-free (DASLLAMA_GPU=1 DASLLAMA_CUDA=1) d4e80429e1 82 file(s), 0 failed
CUDA pod --suite stocked, no --only d4e80429e1 65 file(s), 0 failed
both pods --category x 23 earlier tips of this branch 0 failed each
zen2 --suite image-vulkan --arm vulkan 0d1c1f9 2 file(s), 0 failed; test_model_image_vulkan.das 4 of 4
zen4 --test tests/jobque, -jit and interpreted 9cfd383 286 passed each
zen4 the two-file process, 3x -jit, 2x interpreted 9cfd383 no crash

Deviations:

  • No suite ran after d4e80429e1 except the rows above. Later commits are a master merge (six compiler commits), the job queue review fixes, and the audit fix batches. Each was checked by its own test functions by name on the M5; the preflight lanes ran at b8a85df.
  • The --changed run used base f04361b, not the arc's 69d5378; its plan was already the whole set ("the engine core changed"). It ran without DASLLAMA_CORPUS_DIR, so 159 ASR corpus cells skipped there; they ran in the areas row.
  • The M5 areas row is flagged INCOMPLETE by its start census: three tokenizer fixtures landed minutes into the run. No cell skipped for a missing file.
  • Full-mode cells (DASLLAMA_PARITY_FULL=1) ran on the M5 only, after this PR opened, as --area ... --only <file> runs narrowed by arm or family and one --category qwen35-27b --only test_dflash_drafter run; the four cells on each pod ran on no box.
  • Two commits landed after this PR opened. e659f76 moves a once-said log off the CUDA and Vulkan round loops' hot path (the CI lint lane's finding; the M5's lint compiles neither driver). 52f281a fixes the wasm suite's one red at b8a85df: test_tower_read_gemm_q8_laid asserted a repacking load backend, and wasm loads on the portable one. No other suite ran on either.
  • Web pass: the node dasllama_aot wasm64 target did not run (its link failure is filed). Four of the nineteen Pocket voices' first lines differ from the previous web pass's by 0.10 to 0.20 s; each repeats exactly within this build, and native renders side with either pass.
  • The flash-next and glm45-air categories did not run.
  • Cells added after the pods were released ran on no GPU box: test_gpu_resident_hybrid_mtp_nextn_off_rearm, the three-block carriers' block-count asserts, the cells of the last test batch that need a discrete home.
  • The first job queue fix passed under AddressSanitizer on Linux; the revised one ran on Linux and macOS without it.
  • Local preflight: the lint gate failed once on line length, was fixed, and the eight lanes it had skipped ran once each, all green. docs/sphinx-html skips locally (generated Vulkan pages unavailable).
  • External review: two rounds. Round one, one finding, fixed (the fleet's fetch room rounded used space down). Round two, three findings: the dropped concurrent job panic is the documented behavior of the one process-wide record; two on resumable partials in the room checks are follow-up row 339.
  • The comment harvest and the style hygiene audit were not run.

Pinned sources: FORMATS_HF moved from a05544621a to d77742da19; 126 resolve/<commit> urls and all 29 test_fixtures() entries were read back from their hosts, size and sha256 matching every row.

Claims - stated, not tested

  • dflash_dev_w's reserve has no model-free test: the 27B drafter cell on a discrete home was red before it and green after, on both homes.
  • The server's --mtp false flag reaching the load has no test of the flag itself; test_slot_mtp_off_loads_no_head covers the setting.
  • The lock taken after a panicked block's wait closes a race with the last notifier; no deterministic test exists for it.
  • The 35B NextN draft compare asserts the head-only miss on the device's carry; the end-to-end miss (3.7 Vulkan, 4.1 CUDA) is logged, not asserted.

Not done

  • with_channel, with_lock_box, with_stream and with_seq_box leave a stack object linked when their block panics, as with_job_status did; a follow-up PR takes them, and a per-group job panic record with them.
  • Follow-up rows 338 (the memory figure at the next release re-mint) and 339 (partials in the room checks).
  • Three sibling sets the duplicate audit named as foldable stay as they are.
  • Four test skips read computed state (child exe not built, card room, offline, a device present); they stand.
  • test_tower_read_gemm_q8_laid's control reads 0 in the interpreter; dasLLAMA runs under -jit.
  • The Flash-Next joint cell (test_gpu_resident_hc.das) has the unguarded split shape the micro cell had.

borisbat and others added 30 commits November 30, 2026 21:03
BENCH_ENV_VARS still listed fourteen DASLLAMA_GPU_* knobs the engine no
longer declares. A receipt naming them suggests a knob that changes the
run. The list is public now, and a model-free cell holds every DASLLAMA_
name in it to registered_env_names.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The assistant drafter's bind counted a round past the region's context as
a CPU pass, though nothing leaves the device: the stream steps plain and
the decode counts its own pass if it has one. The bind is shared by the
Vulkan and CUDA homes, so both stop counting it.

A MoE whose host-layers plan still does not fit at a context asked whole
now carries the same note the dense refusal does: the context was asked
whole, so the mirror is not shortened.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The default tag was the CPU's, so under a GPU ask a CPU image was parsed
whole and refused only at arm time. The default is now asked_image_tag,
the pick load_model_cached uses, and another home's image refuses at the
open before its meta is read. The late arm guard keeps its cell through
an explicit CPU tag.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
make_encoder_state and the vision towers' stem sized the whole CPU block
scratch whatever served - about 155 MB for whisper large-v3 - while a GPU
seat reads x, xb and out alone, and a GPU image refuses the CPU body by
name. The scratch now follows the image's home. Ledger row 307 keeps
what is still open; row 144 says what a bf16 source gets on each home.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A cell that starts the test child compiled the child root in its own
wall under plain dastest and answered differently from the suite runner.
It now skips naming the runner command that builds the exe. The runner's
MISSING lines move to info, and its REPORT line counts the skips by
reason and the missing model files: the run's one warning summary.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Dead names re-pointed, gpu:rails dropped (the slot reports cpu or
gpu:resident), the tower flavor docs and the audio lane knob say an asked
home fails the load by name, the Vulkan tower docs say the CPU block loop
refuses a Vulkan image, test comments drop the deleted per-op forms.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
metal_gemma3v_blocks, metal_gemma4v_blocks and metal_qwen3v_blocks
declined an image that is not the Metal home's only when it was q8, so a
non-q8 CPU image could run on the Metal chain. The home check no longer
depends on the quant. Model-free cells count the flavor decline on a
synthetic CPU image of each family.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
audio_tower_serves_q8 read the q8 flavor before the pin, so on a home
whose q8 tiles fail an exact ask failed naming the q8 lane nobody
asked for. A block form of audio_lane_serves_q8 reads the policy only
where no pin and no exact DASLLAMA_AUDIO_LANE ask names the lane; the
same function serves the Vulkan and CUDA homes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The assistant drafter's bind counted a codec pass, and the plain step
after the skipped round counted the same pass again. The bind now reads
the codec gate without counting; the step that leaves the device counts
it once (gpu_cpu_passes). The driver's pass comments and codec text say
a passed call fails by name, as it does on a model with no host plane.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
gpu_cpu_passes and the server's cpu_passes count calls the device did
not serve, each failed by name - not calls handed to CPU rails. A
dropped model's calls fail until its re-arm; the tier charter names the
state it holds; three Vulkan feature texts say the load fails; the
Pocket frames ledger item, whose subject is gone, is deleted; test texts
drop the per-op rails and describe the pass-arm cells as they assert.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
gigaam_serves_q8 probed the exact lane's seat even under a q8 pin. It now
takes the probing form of audio_lane_serves_q8, which reads the pin, then
an asked DASLLAMA_AUDIO_LANE, and probes only where nothing names the
lane.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The host form loads through load_model_ and holds no weight plane on the
host, so a call the driver passes off the device fails by name. The
codec cells' CPU-prefilled distance form is deleted with its forms and
helpers; the regions pin, gap and cap cells, the segment decline cells
and the CUDA pinned-off control now assert the failure text.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The serving tutorial said a paged session's calls ran on the CPU under
Vulkan. A call the device does not serve stops with its reason on a
model the GPU holds, so a finished run lists none; the .das and the .rst
say so alike.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The probing form of audio_lane_serves_q8 dropped the once-a-process
line DASLLAMA_AUDIO_LANE says. One body now serves both forms: the pin,
then the knob, then the policy, read only where neither names the lane.
Whether the knob moved a family off its policy needs that probe, so the
line says the knob decides the lane, once, and the doc and the env cell
say the same.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
asked_image_tag answered Metal's tag inside with_cpu_home_ on a Metal
build. It answers the CPU's there now; load_model_cached keeps the Metal
LLM mode as set_metal_mode's own. A model-free cell walks each arm. The
shell image and the Metal mode put-back are one helper each, and the
test sites that spelled the asked home read asked_image_tag.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The three chain heads spell tw_seat_gate's home check, before the shape
gate. The CPU-home refusal cells and the Metal chain's flavor-decline
cells each go through one helper.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
fails_by_name holds the missing-host-plane words beside the pass's own.
The segment declines pin their exact counts (the first failure stops the
call) and the deepstack arm its driver prefill again. The drafter cell
holds the plain step after a codec-refused bind to one pass and reuses
pass_total. An uncalled CUDA control is deleted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A dastest child whose cells skip with the helpers' reasons writes the
log the runner's classifier counts, the missing sibling shard among
them, and a run's tally adds the kinds. child_test_files reads an argv
it is handed. The log-floor and exe re-key cells use with_env_variables.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A failure by name inside eval_segments_ or forward_prefill_segments ran
inside a for over the segments, which left g_eval_segs (and the caller's
sessions) locked for good: the next segmented call panicked on the lock.
The loops walk by index. The gap cell asserts its failure by name, as a
model with no host plane answers a gap.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
resident_trim_decline answered a plan that does not fit with a bare
line, so the load lost the plan's reason - the context asked whole among
it. The decline carries the reason; the whole-context cell reads it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
With get_metal_mode answering off inside the CPU-home scope, the .dlim
branch's own Metal read and asked_image_tag agree, so the branch takes
the one pick again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
dastest gained one compile_issues for tests that compile a fixture; the
file's own copy made the call ambiguous and the file did not compile.
The plain compiles take dastest's; the one linted compile keeps a
helper of its own.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A run whose files miss a model file, or whose cells skip for a missing
model or fixture, did not test those cells. Its REPORT says INCOMPLETE,
naming the count and the first files, its NEXT line says how to get
them, and it exits 254 unless --allow-missing, which only a box's own
command line sets. A failure count is capped under it. The fleet
status names a home INCOMPLETE ahead of RUN-EXIT. A module or device
not present stays another reason. The cited-run rule is in
REVIEW_RUNS.md.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On a model that holds no weight plane on the host each stream needs a
device region; a scheduler of more streams than the armed driver's
regions failed mid-run instead. It is refused at creation, by name, in
the sentence dasllama-server's slot refusal gives - one function now -
naming set_gpu_resident_regions and set_device_kv. The server keeps its
own slot refusal. The hybrid cell runs two device-home streams on two
regions and asserts the refusal past them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A prompt that finds every mirror region held by a live device-home
session was counted as a busy pass and handed to the CPU rails. On a
model with no weight plane on the host the CPU prefill tripwire then
stopped it with a text about session codecs, which is not the cause.

The bind now fails such a call where the model is planes-trimmed,
naming the held regions. The pin cell and the segmented cell assert
those words.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Under DASLLAMA_GPU=1 a plain load streams the model onto the device and
keeps no host plane, so a cell that reads the CPU rails after it fails
by name. The YaRN cell, the embedding pool cell, the parity rows, the
GLM self-spec cell, the mx4 eager load and the two CPU-slot server
cells load inside with_cpu_home, the one explicit CPU ask.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The model-swap cell's sessions take the armed mirror's codec. The
forced-feed rig's CPU half loads the file again on the CPU home after
the drop instead of reading planes the device load never kept; the
rig's two functions join LOADERS.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The sweep for CPU-rail cells under a GPU ask moved this cell's load
into a CPU-home scope. The cell runs only under the glm45-air category,
which this change does not run on any box, so the edit was never
exercised. The cell is back as it was.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The catalog's worker held the one curl download that resumes, checks the
pinned size and sha256, renames into place and writes the file_identity
sidecar. The test suite's model fetch needs the same rail, so the core moves
to utils/common/verified_download.das (shipped with utils/common) and the
worker maps its outcome to the same failure texts and events as before. The
core also reads the HTTP status of curl's last response, so a caller can tell
a gated file from a cut transfer.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A fetch for a run needs the runner's own selection, so the runner prints its
MISSING census as a list (a path and the files naming it a line) and starts
no child. The list holds what the run opens: a category's file only under its
--category and a family's only inside --family, the gates --list-models
reads. The census now reads subfolder paths too (drafters, fmt-ladder,
moe-formats), as --list-models does, so the MISSING lines name them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
borisbat and others added 11 commits December 1, 2026 23:58
The test laid a 10-row tensor and asserted that the backend's
interleave moved some quants off the row-major read. A backend whose
tile interleaves more than 10 rows a group leaves a 10-row tensor
row-major, so the control read 0 on an AVX-512 box. The tensor has 40
rows now: two full groups of a 16-row interleave and a tail.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A head-off load (DASLLAMA_NEXTN=0, set_nextn_head(false), the server's
mtp = 0) recorded nothing on the Model, so a later re-arm of a gguf
streamed live onto a discrete home re-parsed under the process's ask:
with the ask back on it mapped the split head and read the head's planes,
which the walk over the trunk never served.

Model.nextn_ask records the ask: the gguf parse sets it, an image's map
sets the ask its identity matched (the lane and the identity carry it, so
it is not serialized and no bytes move: IMAGE_META_FIELDS counts it as a
skip, the layout stamp re-stamped). gguf_live_rearm re-parses under the
model's ask and fails by name where the re-parse's head count is not the
model's. The speculation refusal reads the model's ask, not the
process's, so a head-off model refuses by name whatever is asked later.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
hf_snapshot_meta synthesized the qwen4exp draft head's eh_proj into the
meta's host buffer, and carried its head count, whatever the NextN head
ask: under a head-off load the projection was copied onto the host and
then never read. Both now follow the ask, the gate the GGUF path uses.

A synthetic one-layer qwen4_exp snapshot pins it: read taking no head it
holds no eh_proj and no head count, read taking the head (the control) it
holds both.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
dasllama_common.das carried nextn_head_ / set_nextn_head_ /
with_nextn_head_, each one call to what the [lever] nextn_head_ask
generated. The lever getter is now nextn_head_ itself, so the facade's
nextn_head / set_nextn_head / with_nextn_head forward straight to the
lever's own forms and the three forwarders go; every caller of the old
names follows.

The facade pairing test reads a trailing-underscore [lever] getter's
generated set_ and with_ forms, which have no def line, and scans
dasllama_gguf.das; ARCHITECTURE_ENGINE.md lists the lever. The layout
stamp is re-stamped for parse_image's renamed call; no byte moves. The
formats document is back at 300 lines.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
profile_common.das hashed a file and wrote its .sha sidecar beside the
same pair in utils/common/verified_download.das; it now requires that
module: file_sha256 hashes, write_sha_sidecar writes for both.

utils/common/disk_room.das holds free_bytes, gb_text and space_refusal:
fetch_models' plan, the server catalog's download and pod_fleet's room
check refuse through it, each with its own wording; DOWNLOAD_HEADROOM is
the downloads' one headroom. run.das's disk floor reuses free_bytes and
gb_text.

run.das calls strings_boost count, model_category (its stems now match
case aside) and first_named in place of its own copies; fetch_models'
type split reads fio's extension.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
with_metal_mode saved and restored the mode, the overrides and the
kernel backend by hand, the four seats metal_home_seat and
restore_metal_home already hold, and skipped the put-back on a panic.
It now takes the seat and restores it under with_put_back.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The fetch command took the volume's free room as the quota less the
used bytes divided down to whole GB. A volume a fraction of a GB into
its next GB read almost 1 GB freer than it is, so a plan could be
approved that the quota refuses mid-download. The used space rounds up.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The planner's pool-and-table step is its own function
(resident_pool_and_table), so a model-free test can show the table's room
is set aside before the pool without arming a discrete home. fetch_models'
--run plan, refusal and fetch loop move into fetch_census, which takes
the census and the entries, so a test drives every exit over entries of
its own. run.das takes --free-gb like fetch_models: the GB its disk floor
reads in place of the filesystem's answer, for a volume whose df cannot
say and for a test that must not depend on the box's own free room.
free_under moves into utils/common/disk_room.das for both tools.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A live gguf's re-arm whose re-parse counts other NextN layers than the
model holds fails naming both counts (a synthetic gguf, model-free). The
plan keeps the token table on the card where a pool sized first would
have taken its room. fetch_models --run exits 2 on a failed census or a
plan past the room and 1 on a failed fetch, and removes the partial
file an HTTP 404 left. A run below the disk floor stops on its DISK
line with no child started. A k-deep round of a head-off model fails by
name. The discrete-only head-off cells skip by name off a discrete
home instead of passing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The fetch plan and the catalog's room check ask room for a file's
whole size where a resumable partial already holds part of it, so a
rerun on a nearly full disk can be refused though the rest fits. The
row states the done condition; no behavior changes here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The shared disk-room and download helpers, their tests and two
job-queue assertions ran past the 100-column code limit or the
70-column comment limit of their folders. The lines wrap; one
refusal message is built from two literals and reads the same.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 14:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A critical active finding notes utils/common/disk_room.das calls fmt(...) via gb_text without requiring the strings module, indicating the change will not compile as-is.

1 open issue
What changed in this PR

Updates dasLLAMA to ensure every test run is model-complete (missing artifacts yield INCOMPLETE), fixes failures only visible with full model coverage (NextN head/MTP handling, CUDA resident planning, DFlash growth), and hardens job-queue panic unwinding.

Changes:

  • Add fetch-by-run tooling and runner rules so missing required models/fixtures produce INCOMPLETE instead of silent skips.
  • Make “no NextN head” loads (e.g., server mtp=false) supported and persist the head-ask across reload/re-arm paths.
  • Fix GPU/runtime stability issues (CUDA plan ordering/constraints, DFlash reserve-before-grow) and prevent job-queue crashes from panicking wait-group scopes.
File Description
utils/​dasllama-server/​test_server_flags.das Updates assertions/messages to match revised device-vs-CPU pass semantics.
utils/​dasllama-server/​test_openai_server.das Pins server-side model loads to CPU home for deterministic routing expectations.
utils/​dasllama-server/​test_openai_server_vision.das Scopes multi-vision server routing test to CPU home for stability.
utils/​dasllama-server/​test_openai_server_mtp.das Adds coverage that MTP-off loads without a NextN head and preserves the ask.
utils/​dasllama-server/​test_openai_server_embed.das Aligns embed worker expectations/wording with updated pass and serving semantics.
utils/​dasllama-server/​main.das Threads per-slot MTP settings into model load behavior and updates flag docs.
utils/​common/​disk_room.das Introduces shared disk-space/room checking helpers and refusal text formatting.
tutorials/​dasLLAMA/​13_serving.das Updates serving tutorial text/output expectations to match new semantics and labels.
tests/​jobque/​uncategorized.das Adds regression coverage for panicking wait-group scopes that retain references.
tests/​jobque/​test_jobque_edge.das Adds edge-case tests for block panic behavior and wait-group tracking cleanup.
tests/​jobque/​_fixture_panic_parked_job.das Extends panic fixture scenarios to include held wait-group reference cases.
src/​builtin/​module_builtin_jobque.cpp Makes withJobStatus panic-safe by unlinking tracking safely and bounding teardown waits.
src/​builtin/​ARCHITECTURE_JOBQUE.md Documents the updated wait-group block panic contract and rationale.
skills/​internal/​dasllama_testing.md Clarifies validation rules around INCOMPLETE runs and model/fixture gating.
skills/​daslang/​references/​everything.md Updates public reference digest entries for new/changed dasLLAMA symbols and wording.
modules/​dasLLAMA/​tests/​uncategorized_no_aot_persistent_heap.das Adjusts helper behavior/naming to make lint/compile intent explicit.
modules/​dasLLAMA/​tests/​test_whisper.das Pins oracle-sensitive Whisper/Qwen3-Omni behavior to CPU home for determinism.
modules/​dasLLAMA/​tests/​test_vulkan_moe_cm2.das Tweaks wording/notes around Vulkan vs CUDA-armed skip/behavior expectations.
modules/​dasLLAMA/​tests/​test_vulkan_kernels_gemm.das Adds a KHR-only mode to separate responsibilities within rotation/kernel coverage tests.
modules/​dasLLAMA/​tests/​test_tower_helpers.das Adds unit coverage for lane pin/probe precedence and encoder-state sizing behavior.
modules/​dasLLAMA/​tests/​test_scheduler.das Adds tests for stream/region refusal behavior on trimmed/host-limited models.
modules/​dasLLAMA/​tests/​test_qwen3v.das Forces exact/poison legs onto CPU home to match intended reference rails.
modules/​dasLLAMA/​tests/​test_parity.das Ensures parity backend pinning is evaluated under CPU home with refactored helpers.
modules/​dasLLAMA/​tests/​test_model_forms.das Aligns missing-model sentinel naming with the standardized “no-such-*” convention.
modules/​dasLLAMA/​tests/​test_mlx_qwen4exp.das Updates snapshot helper callsites to match the current with_hf_snapshot shape.
modules/​dasLLAMA/​tests/​test_kquant.das Updates Qwen1.5-MoE test inputs and tightens cut-specific assertions.
modules/​dasLLAMA/​tests/​test_interpreter.das Renames absent fixture paths and updates expected output for interpreter smoke coverage.
modules/​dasLLAMA/​tests/​test_gpu_tier.das Removes/adjusts stale comments and expectations in GPU tier tests.
modules/​dasLLAMA/​tests/​test_gpu_resident_llama.das Aligns resident-plan tests with updated codec helpers and revised expectations.
modules/​dasLLAMA/​tests/​test_gpu_resident_gemma4_moe.das Adjusts text/expectations for updated resident/parity edge cases in Gemma4 MoE tests.
modules/​dasLLAMA/​tests/​test_gpu_resident_gemma4_e2b.das Makes discrete-home requirement explicit and removes obsolete CUDA-pinned helper usage.
modules/​dasLLAMA/​tests/​test_gpu_model_swap.das Tightens swap/refusal checks and uses explicit mirror codec in run state.
modules/​dasLLAMA/​tests/​test_gigaam.das Normalizes “non-existent file” sentinels used in arch/fixture checks.
modules/​dasLLAMA/​tests/​test_gguf_shards.das Updates GGUF shard tests to the newer snapshot helper call shape.
modules/​dasLLAMA/​tests/​test_gen_records_args.das Adds assertions that recorded env vars correspond to registered engine knobs.
modules/​dasLLAMA/​tests/​test_facade.das Pins llama2.c oracle paths to CPU home and updates GPU-armed skip detection.
modules/​dasLLAMA/​tests/​test_facade_docs.das Extends facade doc checks to account for generated lever forms and file lists.
modules/​dasLLAMA/​tests/​test_batch_decode.das Pins batch-decode oracle cell to CPU home and adjusts expectations accordingly.
modules/​dasLLAMA/​tests/​test_attn_span.das Pins attention-span oracle coverage to CPU home for consistent reference behavior.
modules/​dasLLAMA/​tests/​test_asr_verbs.das Updates knob/announce expectations to match the new lane-decision semantics.
modules/​dasLLAMA/​tests/​REVIEW.md Extends review guidance on naming/producer provenance (including test_fixtures sources).
modules/​dasLLAMA/​tests/​REVIEW.das Adds gates to keep runner logic light and updates review-time invariants.
modules/​dasLLAMA/​tests/​REVIEW_RUNS.md Tightens run citation rules (fetch-plan evidence; INCOMPLETE not counted as coverage).
modules/​dasLLAMA/​tests/​REVIEW_PINNED_KERNEL_GATES.md Documents updated kernel-gate requirements including khr_only expectations.
modules/​dasLLAMA/​tests/​_vulkan_lane.das Refactors Vulkan lane helpers and switches to centralized fails-by-name checks.
modules/​dasLLAMA/​tests/​_vk_kq_fixtures.das Clarifies fixture/skip rationale for Vulkan-only coverage under CUDA-armed runs.
modules/​dasLLAMA/​tests/​_vision_forms.das Refactors helper placement and clarifies CPU/GPU image handling expectations.
modules/​dasLLAMA/​tests/​_tts_parity.das Introduces helper factoring for device piece counting and parity checks.
modules/​dasLLAMA/​tests/​_tower_twin.das Relocates and reuses CPU-home refusal helper logic for tower test suites.
modules/​dasLLAMA/​tests/​_model_tier.das Updates default model paths to use models_dir and pins certain loads to CPU home.
modules/​dasLLAMA/​tests/​_metal_matrix_cells.das Simplifies constant path/string formatting for Metal matrix test cells.
modules/​dasLLAMA/​tests/​_kv_codec_cells.das Tightens codec helper behavior by removing CPU-rails branches and enforcing served witnesses.
modules/​dasLLAMA/​tests/​_kernel_coverage_cells.das Updates kernel coverage descriptors/comments to match current resident-driver framing.
modules/​dasLLAMA/​tests/​_format_census.das Updates format census snapshot helper invocation to current signature/shape.
modules/​dasLLAMA/​tests/​_cuda_feed.das Fixes argument threading so forced-feed helpers use the actual model path.
modules/​dasLLAMA/​tests/​_cpu_gpu_model.das Persists/restores NextN head pin behavior and loosens pool-slot ask handling.
modules/​dasLLAMA/​tests/​_child_run.das Makes missing child exe an explicit, actionable skip and standardizes env handling.
modules/​dasLLAMA/​tests/​_audio_gigaam_cells.das Makes parity checks robust to near-tie token picks via probability-based tolerances.
modules/​dasLLAMA/​TEST_CATEGORIES.md Updates category descriptions to reflect reduced/updated host-layer and model-split scope.
modules/​dasLLAMA/​REVIEW.das Registers new facade/tutorial coverage items and updates review-time stamps/hashes.
modules/​dasLLAMA/​REVIEW_TOWER.md Applies small wording corrections and clarifications in tower review guidance.
modules/​dasLLAMA/​REVIEW_GPU_RESIDENT.md Adds NextN-head levers to the list of load-time triggers and residency review rules.
modules/​dasLLAMA/​REVIEW_GPU_PARITY.md Updates parity guidance wording to align with “device did not serve” semantics.
modules/​dasLLAMA/​performance/​REVIEW.md Extends catalog single-source-of-truth guidance to include test_fixtures entries.
modules/​dasLLAMA/​HOW_TO_ADD_A_FORMAT.md Expands format landing checklist to include NextN head and mixed-site requirements.
modules/​dasLLAMA/​followup_metal.md Removes or marks resolved follow-up items now covered by the loader/test updates.
modules/​dasLLAMA/​dasllama/​dasllama_vulkan_decode.das Refactors split-piece comparison logic and adds stronger row-count equivalence checks.
modules/​dasLLAMA/​dasllama/​dasllama_tower.das Makes audio lane selection lazier and updates warning semantics around probing/policy.
modules/​dasLLAMA/​dasllama/​dasllama_tower_image.das Clarifies asked-home device flavor behavior and related tower semantics.
modules/​dasLLAMA/​dasllama/​dasllama_tokenizer.das Switches tokenizer meta loading to tokenizer-only snapshot helper paths.
modules/​dasLLAMA/​dasllama/​dasllama_scheduler.das Adds region/stream refusal helpers and optional enforcement in scheduler creation.
modules/​dasLLAMA/​dasllama/​dasllama_qwen3v.das Avoids CPU scratch allocations for GPU image encodes and sizes scratch conditionally.
modules/​dasLLAMA/​dasllama/​dasllama_qwen3a.das Gates CPU-only scratch/requant buffers off GPU-image encode paths.
modules/​dasLLAMA/​dasllama/​dasllama_qwen25v.das Applies the same CPU scratch gating for GPU-image encode paths.
modules/​dasLLAMA/​dasllama/​dasllama_parakeet.das Clarifies device flavor selection semantics in comments and related tower integration.
modules/​dasLLAMA/​dasllama/​dasllama_math_cuda.das Disables/flags unsupported CUDA pool-window behavior when required streams are absent.
modules/​dasLLAMA/​dasllama/​dasllama_load.das Threads NextN-head ask through loads and supports explicit head-off trunk loading.
modules/​dasLLAMA/​dasllama/​dasllama_gpu_tier.das Adds capability flags and updates wording/semantics for cpu-pass reporting.
modules/​dasLLAMA/​dasllama/​dasllama_gigaam.das Adapts to updated audio lane APIs and updates related flavor comments/behavior.
modules/​dasLLAMA/​dasllama/​dasllama_gguf.das Introduces NextN head lever handling and integrates head-off behavior into GGUF logic.
modules/​dasLLAMA/​dasllama/​dasllama_gemma4v.das Avoids allocating CPU scratch buffers when running GPU-image encode paths.
modules/​dasLLAMA/​dasllama/​dasllama_gemma3v.das Applies the same CPU scratch gating for Gemma3V GPU-image encode paths.
modules/​dasLLAMA/​dasllama/​dasllama_dflash.das Reserves before growth and uses reserve-resize patterns to fix device plane scaling.
modules/​dasLLAMA/​dasllama/​dasllama_core.das Exposes NextN head APIs through the core/facade surface and aligns pass semantics.
modules/​dasLLAMA/​dasllama/​dasllama_config.das Adds no_head identity component and updates identity serialization/config handling.
modules/​dasLLAMA/​dasllama/​dasllama_audio.das Refactors encoder state allocation, separating shared seats from CPU-only scratch needs.
modules/​dasLLAMA/​CLAUDE.md Documents INCOMPLETE semantics and the list-missing/fetch-by-run workflow.
modules/​dasLLAMA/​BRINGUP.md Adds concrete fetch_models --run usage examples for reproducible bring-up.
modules/​dasLLAMA/​benchmarks/​rope/​bench_metal_rope_store.das Simplifies Metal rope benchmark buffer array construction and cleanup.
modules/​dasLLAMA/​benchmarks/​ew/​bench_metal_ew.das Simplifies Metal elementwise benchmark buffer array construction and cleanup.
modules/​dasLLAMA/​ARCHITECTURE_MEDIA.md Updates documentation around lane knob semantics and media pipeline behavior.
modules/​dasLLAMA/​ARCHITECTURE_IMAGE.md Documents -nohead identity and trunk-only image semantics for serving/loads.
modules/​dasLLAMA/​ARCHITECTURE_IMAGE_SERVING.md Documents head-off loads, persistence across re-arms, and refusal conditions.
modules/​dasLLAMA/​ARCHITECTURE_IMAGE_GPU_PLANES.md Clarifies asked_image_tag behavior in image home selection and GPU planes.
modules/​dasLLAMA/​ARCHITECTURE_GPU.md Updates GPU tier responsibilities and aligns terminology with current behavior.
modules/​dasLLAMA/​ARCHITECTURE_GPU_VULKAN.md Refreshes Vulkan architecture references and corrects constant/name mentions.
modules/​dasLLAMA/​ARCHITECTURE_GPU_VULKAN_STREAM.md Documents CUDA constraints around host layers, hot pools, and prompt stream requirements.
modules/​dasLLAMA/​ARCHITECTURE_GPU_VULKAN_RESIDENCY.md Updates residency documentation to match current drop/fail-by-name behavior.
modules/​dasLLAMA/​ARCHITECTURE_GPU_VULKAN_POOL.md Clarifies pool/token-table ordering required for correct plan budgeting.
modules/​dasLLAMA/​ARCHITECTURE_GPU_VULKAN_MOE.md Fixes/updates type/name references in the MoE Vulkan architecture notes.
modules/​dasLLAMA/​ARCHITECTURE_GPU_VULKAN_LANDING.md Aligns landing/redo semantics documentation with updated failure behavior.
modules/​dasLLAMA/​ARCHITECTURE_GPU_VULKAN_GEMM.md Updates referenced helper/constant names to match current GEMM implementation.
modules/​dasLLAMA/​ARCHITECTURE_GPU_TOWER.md Updates references and notes around tower attach paths and helper naming.
modules/​dasLLAMA/​ARCHITECTURE_GPU_TOWER_VULKAN.md Clarifies Vulkan tower device behavior and CPU refusal mechanics for specific paths.
modules/​dasLLAMA/​ARCHITECTURE_GPU_SHARED_KERNELS.md Corrects shared-kernel documentation references for Metal/Vulkan naming.
modules/​dasLLAMA/​ARCHITECTURE_ENGINE.md Adds NextN head lever documentation to the engine-level lever list.
modules/​dasLLAMA/​ARCHITECTURE_ENGINE_SUPPORT.md Expands fetch_models charter to include --run and documents runner/child-exe behavior.
modules/​dasLLAMA/​ARCHITECTURE_ENGINE_SERVING.md Documents scheduler region/stream constraints and refusal behavior for trimmed models.
modules/​dasLLAMA/​ARCHITECTURE_ENGINE_MEMORY.md Documents NextN ask persistence across re-arm and related refusal/logging behavior.
modules/​dasLLAMA/​ARCHITECTURE_ENGINE_FORMATS.md Updates formats documentation to include GGUF ownership of NextN head ask behavior.
modules/​dasLLAMA/​ARCHITECTURE_ENGINE_FORMATS_MLX.md Documents tokenizer-only meta path and updates MLX format notes accordingly.
doc/​source/​reference/​utils/​dasllama_server.rst Updates server reference docs for --mtp and pass/serving semantics.
doc/​source/​reference/​tutorials/​dasLLAMA_13_serving.rst Regenerates serving tutorial reference to match updated outputs and semantics.
doc/​reflections/​das2rst.das Ensures doc generation groups/include the new NextN head APIs appropriately.
dastest/​tests/​test_reports.das Adds regression coverage to prevent stale recovered panic text from being reported.
dastest/​tests/​_fixture_stale_recover.das Adds a fixture reproducing recovered-then-uncaught panic ordering under GC/heap behavior.
dastest/​suite.das Adjusts report logic to avoid surfacing stale last_exception text when exception is present.

Review effort: Balanced
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

Comment thread utils/common/disk_room.das Resolved
The once-said log of an assistant round past the region's context
sat inline in gpu_resident_assist_bind, which the CUDA and Vulkan
gemma round loops reach on their hot path: the Linux lint lane
reports PERF026 and PERF028 there. The log now lives in
rdec_assist_cap_say, a [cold_path] function, as the driver's other
once-said lines do. No behavior change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The change modifies core job-queue runtime panic/teardown behavior (runWithCatch, waiting, forced _Exit) and cross-cutting scheduler/GPU-serving paths, introducing concurrency and exception/longjmp sensitivity that warrants maintainer review and multi-platform validation before approval.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

test_tower_read_gemm_q8_laid asserted that this box's load backend
repacks q8 planes. The wasm suite loads on the portable backend,
which lays them row-major, so the test failed there on its
precondition and its control. The plain half (without `rep` the
laid read is the plain read) now runs first on every backend, and
the repacked half skips by name where the load backend does not
repack.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 14:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

A subtle mismatch between the documented panic exit code and the OS-level exit status used by the parent tests (−2 vs 254 on non-Windows) could mislead failure diagnosis, so a human should assess whether the behavior and comments are aligned.

No open issues 🎉

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants